package com.imooc.activiti.delegate;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * test
 * Created by superman on 2018/10/13.
 */
public class MDCErrorDelegate implements JavaDelegate {
    private static final Logger LOGGER= LoggerFactory.getLogger(MDCErrorDelegate.class);

    @Override
    public void execute(DelegateExecution delegateExecution) {
        LOGGER.info("run MDCErrorDelegate");
        throw new RuntimeException("only test");

    }
}
